package com.guguskins.back.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guguskins.back.entity.GuUser;
import com.guguskins.back.entity.GuWithdrawal;
import com.guguskins.back.entity.vo.PageVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-08-02
 */
public interface GuWithdrawalService extends IService<GuWithdrawal> {

    PageVo<GuWithdrawal> backPage(int p, int size, String searchKey);

    boolean trade(GuUser user, Long inventoryId, String inventoryItemName);

    boolean callback(JSONObject jsonObject);

    boolean backCancel(GuWithdrawal withdrawal);
}
